weixianzuoyepingguView = Ext.extend(Ext.Panel, {
    constructor : function(a) {
        Ext.applyIf(this, a);
        var all=this.initUIComponents();
        weixianzuoyepingguView.superclass.constructor.call(this, {
            id : "weixianzuoyepingguView",
            region : "center",
            layout : "border",
            border : false,
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel]
        });
    },
    initUIComponents : function() {
         var yearGridComponents=new creategridview({
            topbar : {
                inputFormName : 'WeiXianZuoYePingGuForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "作业编号"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_zuoYeBianHao_S_LK",
                    maxLength : 256
                } ]
            },
            grid : {
                title : "危险作业评估信息列表",
                rowActions:true,
                listUrl : __ctxPath + "/weixianzuoye/listWeiXianZuoYePingGu.do?Q_weiXianZuoYeId_L_EQ="+this.weixianzuoyeId,
                removeUrl : __ctxPath + "/weixianzuoye/deleteWeiXianZuoYePingGu.do",
                fields : [ "id", 'years','institution','zuoYeBianHao', "zuoYeMingCheng","pingGuBuMen", "pingGuRen", "pingGuShijian","cunZaiWenTi","gaiJinCuoShi"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                },  {
                    header : "作业编号",
                    dataIndex : "zuoYeBianHao",
                    width : 100
                }, {
                    header : "作业名称",
                    dataIndex : "zuoYeMingCheng",
                    width : 70
                }, {
                    header : "评估部门",
                    dataIndex : "pingGuBuMen",
                    width : 70
                }, {
                    header : "评估人",
                    dataIndex : "pingGuRen",
                    width : 100
                },{
                    header:"评估时间",
                    dataIndex:"pingGuShijian",
                    width:100
                },{
                    header:"存在问题",
                    dataIndex:"cunZaiWenTi",
                    width:100
                },{
                    header:"改进措施",
                    dataIndex:"gaiJinCuoShi",
                    width:100
                }]
                
            },
            formCfg : {
                weixianzuoyeId : this.weixianzuoyeId,
                zuoyebianhao:this.zuoyebianhao,
                zuoyemingcheng:this.zuoyemingcheng,
                zuoyebumen : this.zuoyebumen
            }
        });
        return yearGridComponents;
    }
});